From: Paul Eggert Date: Mon, 12 Aug 2013 20:17:32 +0000 (-0700) Subject: * process.c (deactivate_process): Reset fds to -1. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~3275^2~299 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=297a545bb4482efe73456afa4a7d5aae67fd0fdb;p=emacs.git * process.c (deactivate_process): Reset fds to -1. This fixes a problem introduced by the Bug#15035 patch when using GPG. Reported by Herbert J. Skuhra. --- diff --git a/src/ChangeLog b/src/ChangeLog index 04c89b63fa4..3b8dfe011ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-08-12 Paul Eggert + + * process.c (deactivate_process): Reset fds to -1 (Bug#15035). + This fixes a problem introduced by the Bug#15035 patch + when using GPG. Reported by Herbert J. Skuhra. + 2013-08-12 Eli Zaretskii * decompress.c [WINDOWSNT]: New static variable. diff --git a/src/process.c b/src/process.c index a2bcffe5160..c803d69d6d8 100644 --- a/src/process.c +++ b/src/process.c @@ -3842,6 +3842,8 @@ deactivate_process (Lisp_Object proc) if (inchannel >= 0) { + p->infd = -1; + p->outfd = -1; #ifdef DATAGRAM_SOCKETS if (DATAGRAM_CHAN_P (inchannel)) {